<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // \App\Models\User::factory(10)->create();
//        DB::table('wechat_setting')->insert([
//            'name' => "微信默认配置",
//            'mini_app' => '{"token": "aes_key", "app_id": "appid", "secret": "secret", "aes_key": "appid"}',
//            'official_account' => '{"token": "token", "app_id": "appid", "secret": "secret", "aes_key": "aes_key"}',
//            'payment' => '{"mch_id": 10020100000, "key": "24266464214442754e19", "cert_path": "", "key_path": ""}'
//        ]);
        \DB::table('file_dir')->insert([
            [
                'name' => '默认',
                'has_type' => 'admin',
            ],
            [
                'name' => '图片',
                'has_type' => 'admin',
            ],
            [
                'name' => '视频',
                'has_type' => 'admin',
            ],
            [
                'name' => '其他',
                'has_type' => 'admin',
            ],
        ]);
    }
}
